{literal}

<h2>Segment based URL-s</h2>

By default, URLs in DomSite are designed to be search-engine and human friendly. <br>
Rather than using the standard "query string" approach to URLs that is synonymous with dynamic systems, DomSite uses a segment-based approach:<br>
<br>
Sample urls:<br>
http://site.come/CONTROLLER/METHOD/ARGUMENT1/ARGUMENT2/<br>
<br>
Matching Controller for this url would be<br>
<pre class="code">
&lt;?php
class CONTROLLER extends DomController {
	
	public function index() {}
	
	public function METHOD( $ARGUMENT1, $ARGUMENT2 ) {
	
	}

}
?&gt;
</pre>

<h2>Standard query strings</h2>

It is also possible to use standard query strings like http://site.com/CONTROLLER/METHOD/ARG1/ARG2/&urlArg1=value&urlArg2=otherValue<br>
See sample below to use standard query strings.
<pre class="code">
&lt;?php
class CONTROLLER extends DomController {
	
	public function index() {}
	
	public function METHOD( $ARGUMENT1, $ARGUMENT2 ) {
		$urlArg1 = $_GET['urlArg1'];
		$urlArg2 = $_GET['urlArg2'];
	}
}
?&gt;
</pre>
{/literal}
